@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('title', $category->seo_title)
@section('content')
<div class="banner1"></div>
<div class="xtxx">
            <div class="xtxx_top">
                <div class="xtxx_tit"><p><a href="{{url('news?catid=25')}}">新闻中心</a>&nbsp;&gt;&nbsp;<a href="{{url($category->controller.'?catid='.$category->id)}}"">{{$category->name}}</a></p></div>
            </div>
            <div class="hyzx">
                <div class="hyzx_left">
                    <h2>行业资讯</h2>
                    <ul>
                    @if($category->parent_id > 0 && isset($menu[$category->parent_id]) && !empty($menu[$category->parent_id]))
                    	@foreach($menu[$category->parent_id]['child'] as $k=>$row)
                        <li
                        @if($category->id == $row['id'])
                         class="hover3"
                        @endif
                         ><a href="{{url($row['controller'].'?catid='.$row['id'])}}">{{$row['name']}}</a></li>
                        @endforeach
                    @elseif($category->parent_id == 0)
                        @foreach($menu[25]['child'] as $k=>$row)
                        <li><a href="{{url($row['controller'].'?catid='.$row['id'])}}">{{$row['name']}}</a></li>
                        @endforeach
                    @endif 
                        
                    </ul>
                </div>
                <div class="hyzx_right">
                    <div class="hyzx_nr"><div class="nrbox"><ul></ul></div><div class="nrbox"><ul>
                    @foreach($pageList as $row)
                    <li><span class="fr">{{$row->updated_at->toDateString()}}</span><a href="{{url('newsDetail/'.$row->id)}}">{{$row->post_title}}</a></li>
                    @endforeach	
                    </ul></div>
                    <div class="dede_pages">
                        <ul class="pagelist">
                        {{ $pageList->links('common.paginator', [ 'results'=>$pageList ]) }}
                        </ul>
                    </div>
                    </div>
                    

                    <div class="hyzx_tp">
                        <ul>
                            <li><a href="javascript:;"><img src="/front/Content/images/20.png"></a></li>
                            <li><a href="javascript:;"><img src="/front/Content/images/21.png"></a></li>
                           
                        </ul>
                    </div>
                    <input id="pageNo" type="hidden" value="1">
                    <input id="pages" type="hidden" value="1">

                </div>
            </div>
        </div>

@endsection
@section('footer')
     @include('common.footer')
@stop